//
//  NSAttributedString+TextHighly.m
//  Housekeeping
//
//  Created by 辰领科技 on 16/6/1.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "NSAttributedString+TextHighly.h"

@implementation NSAttributedString (TextHighly)

- (CGFloat)calcTextSizeWith:(UIFont *)font totalSize:(CGSize)totalSize {
    CGSize size = [self boundingRectWithSize:totalSize
                                     options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading)
                                     context:nil].size;
    return size.height;
}
@end
